package khfx.service.common.impl;

import java.util.List;

import javax.annotation.Resource;

import khfx.dao.common.GroupFiveclassifyDao;
import khfx.dao.db.Session;
import khfx.dao.db.StoreManager;
import khfx.domain.common.FiveclassifyVo;
import khfx.service.common.GroupFiveclassifySelectService;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
@Component("GroupFiveclassifySelectService")
public class GroupFiveclassifySelectServiceImpl implements GroupFiveclassifySelectService {
	private final Logger logger = Logger.getLogger(GroupFiveclassifySelectServiceImpl.class);
	@Resource GroupFiveclassifyDao groupBalanceSelectDao;
	
	public List<FiveclassifyVo> selectFiveclassify(Integer reportDate){
		List<FiveclassifyVo> list = null;
		Session session = null;
		try{
			session = StoreManager.openSession();
			list = groupBalanceSelectDao.groupFiveclassify(session, reportDate);
		}catch(Exception e){
			logger.error(e);
		}finally{
			StoreManager.closeSession(session);
		}
		return list;
	}
}
